/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.gt.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.gt.dao.GtCompanyPeopleDao;
import com.thinkgem.jeesite.modules.gt.entity.GtCompanyPeople;

/**
 * 企社扶贫人信息Service
 * @author zad
 * @version 2018-03-26
 */
@Service
@Transactional(readOnly = true)
public class GtCompanyPeopleService extends CrudService<GtCompanyPeopleDao, GtCompanyPeople> {

	public GtCompanyPeople get(String id) {
		return super.get(id);
	}
	
	public List<GtCompanyPeople> findList(GtCompanyPeople gtCompanyPeople) {
		return super.findList(gtCompanyPeople);
	}
	
	public Page<GtCompanyPeople> findPage(Page<GtCompanyPeople> page, GtCompanyPeople gtCompanyPeople) {
		return super.findPage(page, gtCompanyPeople);
	}
	
	@Transactional(readOnly = false)
	public void save(GtCompanyPeople gtCompanyPeople) {
		super.save(gtCompanyPeople);
	}
	
	@Transactional(readOnly = false)
	public void delete(GtCompanyPeople gtCompanyPeople) {
		super.delete(gtCompanyPeople);
	}
	@Transactional(readOnly = false)
	public void deleteByCompanyId(String companyId)
	{
		super.dao.deleteByCompanyId(companyId);
	}
	
	// 批量插入龙头企业（合作社）扶贫人信息
	public int insertList(List<GtCompanyPeople> companyPeopleList)
	{
		return super.dao.insertList(companyPeopleList);
	}
}